home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5845 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fwrite help?
  5. Date: 22 Feb 1996 02:59:05 +1300
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4gf8f9$hmh@airdmhor.gen.nz>
  8. References: <4fmaig$7of@news.global1.net> <harmon.824165113@pegasus.montclair.edu> <danpop.824668361@rscernix>
  9. NNTP-Posting-Host: airdmhor.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. In <harmon.824165113@pegasus.montclair.edu> harmon@pegasus.montclair.edu (Derek Harmon) writes:
  13. > first element in line, sizeof(char) for size insures compatibility on machines
  14. > where a character is more than one byte,
  15.  
  16. Dan Pop:
  17. > Nonsense.  sizeof(char) is 1 _by definition_.  The real reason behind
  18. > writing sizeof(char) is to improve the readability of the code for the
  19. > human reader.  To the compiler, sizeof(char) and 1 are equivalent in most
  20. > contexts (they have the same value, but different types).
  21.  
  22.   Oh I wish.. and the fact that I can argue against what you say just goes
  23. to show (if you knew what I'd just done) how stupid I was.  Watcom supports
  24. multi-byte chars (this is what it calls them), if a character is more than
  25. one byte, then it would be very difficult to fit it in to one byte, would it
  26. not?
  27.